-module ( gameObject ).
-export ( [start/0] ).

start() -> loop( null ).



loop( null ) ->
  receive
    { game_enterWorld, WorldPid, Id } ->
      loop( { Id, WorldPid } )
  end;

loop( {Id, WorldPid} ) ->
  receive
    Other ->
      io:format( "GameObject: Unknown message ~p", [Other] ),
      loop( { Id, WorldPid } )
  end.
